package com.zhuiYun.project.api.classifyshops.service;


import com.zhuiYun.project.api.classifyshops.entity.BigClassify;
import com.zhuiYun.project.api.classifyshops.entity.Classify;
import com.zhuiYun.project.api.classifyshops.entity.CommodityComment;
import com.zhuiYun.project.api.commoditydetail.entity.Commodity;
import com.zhuiYun.project.util.pageUtil.PageRequest;
import com.zhuiYun.project.util.pageUtil.PageResult;


import java.util.List;

/**
 * @ClassName ClassifyService
 * @Description TODO
 * @Author 韩佳轩
 * @Date 2023/4/6 10:32
 **/
public interface ClassifyService {

/**
* @Author 韩佳轩
* @Description 全查大分类
* @Date 2023/4/17 15:21
* @Return java.util.List<com.zhuiYun.project.api.classifyshops.entity.BigClassify>
* @param bigClassify
*/
    List<BigClassify> getBigClassify(BigClassify bigClassify);

    /**
    * @Author 韩佳轩
    * @Description  根据大分类id查小分类
    * @Date 2023/4/6 10:44
    * @Return com.zhuiYun.project.common.response.CommonResult
    * @param classify
    */
   List<Classify> getClassify(Classify classify);
    /**
    * @Author 韩佳轩
    * @Description  根据小分类查商品列表
    * @Date 2023/4/6 14:41
    * @Return java.util.List<com.zhuiYun.project.api.classifyshops.entity.Commodity>
    * @param
    */
   List<Commodity> getComodityList(Commodity commodity);

    /**
     * @Author 韩佳轩
     * @Description  根据商品列表查商品详情
     * @Date 2023/4/6 19:39
     * @Return java.util.List<com.zhuiYun.project.api.classifyshops.entity.Commodity>
     */
    List<Commodity> getShopsMain(Commodity commodity);

    /**
    * @Author 韩佳轩
    * @Description 商品详情下的评论全查
    * @Date 2023/4/9 19:20
    * @Return com.zhuiYun.project.util.pageUtil.PageRequest
    * @param commodityComment
    */

    PageResult getShopsMaincomments(CommodityComment commodityComment, PageRequest pageRequest);

    /**
    * @Author 韩佳轩
    * @Description 计算评论里的评分
    * @Date 2023/4/11 15:54
    * @Return java.util.List<com.zhuiYun.project.api.classifyshops.entity.CommodityComment>
    * @param commodityComment
    */

    Double getScore(CommodityComment commodityComment);
}
